/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package control.accion;

import control.SIRHApp;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;

/**
 *
 * @author tuareg
 */
public class EmpleadoAdministrar extends AbstractAction {

    public EmpleadoAdministrar() {
        super();
        putValue(Action.SHORT_DESCRIPTION, "Administre los Empleados");
        putValue(Action.LONG_DESCRIPTION, "Administre los Empleados");
        putValue(Action.SMALL_ICON, new javax.swing.ImageIcon(getClass().getResource("/frontera/recursos/ConsEmpleado.png")));
    }

    public void actionPerformed(ActionEvent e) {
        SIRHApp.getInstance().getVentanaPrincipal().getPestanasPrincipal().setSelectedComponent(SIRHApp.getInstance().getFactoryInterfaz().getPestanaPersonal());
        SIRHApp.getInstance().getVentanaPrincipal().getPestanasIntPersonal().setSelectedComponent(SIRHApp.getInstance().getFactoryInterfaz().getPanelEmpleados().getParent().getParent().getParent()); // El panel de Empleados esta metido dento de muchas cosas
    }
}
